
/*==== Base Reset ======*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: #FFFFF0; /* Ivory white */
    color: #000;
    line-height: 1.6;
    padding: 2em;
}

.gradient-text{
    background: #000;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-family: 'Migra', serif;

}
.container {
    padding-bottom: 80px;
    max-width: 850px;
    margin: 0 auto;
}



/* ===== THEME CHANGE =======  */

/* Base body styling (default: light theme) */
body {
    transition: background-color 0.3s ease, color 0.3s ease;
    background: #FFFFF0;
    color: #000;
}

/* Dark Theme */
body.dark-theme {
    background: #1B1212; /* Dark background */
    color: #e0e0e0;  /* Light text */
}

/* Theme toggle button (applies to SVG icon via currentColor) */
#theme-toggle {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 30%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
    font-size: 23px;
    color: #000; /* Light mode: moon icon color is black */
    background: none;
    padding: 0;
    line-height: 1;
}

/* Button hover effect */
#theme-toggle:hover {
    transform: scale(1.07);
}

/* In dark mode, make icon white (moon or sun via currentColor) */
body.dark-theme #theme-toggle {
    color: #ffff42 ;
    background: none;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}





/* Dark theme text adjustments */
body.dark-theme .hero-text p,
body.dark-theme section h2 {
  color: #bbb;
}

/* Social icons  */
body.dark-theme .social-icons1 a:hover,
body.dark-theme .social-icons a:hover {
  color: #ffff42 ;

}


/* Name underline  */
body.dark-theme .highlight:hover {
  color: #ffff42 ;
}
body.dark-theme .highlight::after {
    background: #ffff42 ;
}


body.dark-theme .gradient-text {
    color: #FFFFF0;
}

body.dark-theme .tags span,
body.dark-theme .proj {
    background-color: #FFFFF0;
    color: #121212;
    font-weight: 600;
}








/* ======= Hero Section =========*/

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    padding-top: 2rem;
    font-size: 1.3rem;
}

.highlight {
  color: #FF5722;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
  position: relative;
  font-family: 'Migra', serif;
}

.highlight:hover {
    color: #3F00FF;
    transition:  0.3s ease;
}

.highlight::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: #3F00FF;
    transition: width 0.3s ease;
}
.highlight:hover::after {
    width: 100%;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 800;
}

.hero-text p {
    font-size: 1.2rem;
    color: #333;
    margin-top: 0.5rem;
    max-width: 500px;
}

.hero-img img {
    width: 120px;
    height: 120px;
    border-radius: 30px 30px 5px 30px;
    object-fit: cover;
    display: block;
    border-width: 2px;
    border-style: solid;
    border-color: #1b1515;
}


/* ====== Section Headings ====== */
section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
}

/* ======= About ======*/
.about p {
    color: #666;
    font-size: 1.2rem;
    max-width: 700px;
}

/* ===== Work Experience ===== */
.job {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0;
}

.job-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.job-info img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.job-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.job-info p {
    font-size: 1.1rem;
    color: #666;
}

.date {
    color: #888;
    font-size: 0.9rem;
}

.badge {
    background: #f2f2f2;
    color: #000;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 6px;
    margin-left: 6px;
}

/* ======= Education ========*/
.edu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0;
}

.edu-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.edu-info img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.edu-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.edu-info p {
    color: #666;
    font-size: 1.1rem;
}

/* ======== Skills ====== */
.skills .tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 1.5rem;
    padding-bottom: 20px;
}

.tags span {
    background-color: #1B1212;
    color: #fff;
    padding: 1px 14px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 1.05rem;
    cursor: pointer;
    border: 1px solid transparent;
}



/*====== Projects ======*/
.projects {
    text-align: center;
    margin-top: 5rem;
}

.proj {
    background: #1B1212;
    font-size: 1.5rem;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 500;
    margin-bottom: 1rem;
}

.projects h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

.projects p {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0.5rem auto;
}



/* ====== Projects - NEW CARD STYLE ====== */
/* ====== Projects Section Layout ====== */
.projects {
    text-align: left;
    margin-top: 5rem;
    padding-bottom: 2rem;
    max-width: 1000px; /* Increased to fit 3 cards better */
    margin-left: auto;
    margin-right: auto;
}

.projects h2 {
    text-align: center; /* Center the heading */
    margin-bottom: 2rem;
}

/* Grid Container */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns on desktop */
    gap: 1.5rem;
    padding: 10px;
}

.project-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column; /* Ensures content fills card evenly */
    height: 100%;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(33, 31, 179, 0.15);
}

.project-image {
    position: relative;
    height: 180px; /* Reduced height for 3-col layout */
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hover Links Overlay */
.project-links {
    position: absolute;
    inset: 0; /* Cover whole image */
    background: rgba(47, 44, 44, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(3px);
}

.project-card:hover .project-links {
    opacity: 1;
}

.btn-demo, .btn-github {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
    transition: 0.3s;
}

.btn-demo { background: #2b71e2; }
.btn-github { background: #1a1a1a; }

.project-content {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
}

.project-desc {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tech span {
    background: #f0f0f0;
    color: #5c63cb;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Dark theme overrides */
body.dark-theme .project-card {
    background: #1B1212;
    border-color: rgba(255, 254, 254, 0.05);
}
body.dark-theme .project-card:hover {
    box-shadow: 0 20px 40px rgba(33, 31, 179, 0.10);
}
body.dark-theme .project-content h3 { color: #fff; }
body.dark-theme .project-desc { color: #bbb; }
body.dark-theme .project-tech span { background: #f0f0f0; color: #000000; }




/* ====== Responsive Design Update ======= */

/* Tablets (2 columns) */
@media (max-width: 900px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .project-links{
        justify-content: center;
    }
}

/* Mobile (1 column centered) */
@media (max-width: 600px) {
    .projects-grid {
        grid-template-columns: 1fr;
        max-width: 350px;
        margin: 0 auto; /* Center the grid itself */
    }

    .project-card {
        margin-bottom: 1rem;
    }

    .project-links{
        justify-content: center ;
    }
}




/* ======== Connection Icons  ======= */
.social-icons1{
    display: flex;
    gap: 1.5rem;
    justify-content: left;
    margin-top: 0.75rem;
}
.social-icons1 a {
    color: #808080;
    font-size: 1.2rem;
    transition: color 0.3s;
}
.social-icons1 a:hover {
    color: #000000;
    transform: scale(1.05);
}

.social-icons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 0.2rem;
}

.social-icons a {
    color: #808080;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #000;
    transform: scale(1.05);
}

/* ======== Footer ========*/
.footer {
    font-size: 13px;
    text-align: center;
    padding: 10px;
    color: #888;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}


/* ====== Responsive Design ======= */
@media (max-width: 700px) {

    body {
        padding: 1.5rem;
    }

    .hero {
        top: 1rem;
        flex-direction: column;
        text-align: center;
    }
    .gradient-text p {
        font-size: 1.3rem ;
    }
    .about p {
        font-size: 1.1rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }
    section h2 {
        font-size: 1.3rem;
    }

    .job,
    .edu-item {
        flex-direction: column;
        align-items: flex-start;
        font-size: 1rem;
    }

    .date {
        margin-top: 0.5rem;
    }

    .proj {
        font-size: 1.2rem;
    }
    .projects h2 {
        font-size: 1.3rem;
    }
    .projects p {
        font-size: 1rem;
    }

    .tags span {
        padding: 2px 10px;
        font-size: 0.9rem;
    }

    .project-card {
        margin: 1.5rem 0;
    }

    .project-image {
        height: 200px;
    }

    .project-links {
        /* flex-direction: column; */
        align-items: center;
        justify-content: center;
        gap: 1rem;
    }

    .btn-demo, .btn-github {
        justify-content: center;
    }

    .project-content {
        padding: 1.5rem;
    }

    .social-icons1 {
        justify-content: center; /* center horizontally */
    }
    .footer {
        font-size: 0.8rem;
    }
    .social-icons a {
        font-size: 1rem;
    }
}


/* ====== Transition on load  =======*/
section {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease-out;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}
